package com.tangsw.springbootdemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.tangsw.springbootdemo.utils.BigDecimal4Serializer;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class SysUser implements Serializable {

    private static final long serialVersionUID = 601002626452415098L;
    @TableId(value = "id",type = IdType.ASSIGN_UUID)
    private String id;

    private String realName;

    @JsonSerialize(using = BigDecimal4Serializer.class)
    private BigDecimal balance;

    private String remarks;

    private Date createTime;
}
